package com.exam.project.business.dto;

import com.exam.framework.aspectj.lang.annotation.Excel;

import java.util.List;

public class QuestionDto {
    private Long id;
    private String questionType;
//    t1.question_type,t1.question_content,t1.difficulty_level,t1.`subject`,t1.score,t2.is_marked,t2.is_correct,t2.answer_content
    private String questionContent;
    private String difficultyLevel;
    private String subject;
    private Integer score;
    private Integer marked;
    private Integer correct;
    private String answerContent;
    private List<Option> optionList;
    private Long userId;
    public static class  Option{
        private Long id;

        /** 关联的题目id */
        @Excel(name = "关联的题目id")
        private Long questionId;

        /** 选项字母，如A、B、C、D */
        @Excel(name = "选项字母，如A、B、C、D")
        private String optionLetter;

        /** 选项内容 */
        @Excel(name = "选项内容")
        private String optionContent;

        public String getOptionContent() {
            return optionContent;
        }

        public void setOptionContent(String optionContent) {
            this.optionContent = optionContent;
        }

        public String getOptionLetter() {
            return optionLetter;
        }

        public void setOptionLetter(String optionLetter) {
            this.optionLetter = optionLetter;
        }

        public Long getQuestionId() {
            return questionId;
        }

        public void setQuestionId(Long questionId) {
            this.questionId = questionId;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getQuestionType() {
        return questionType;
    }

    public void setQuestionType(String questionType) {
        this.questionType = questionType;
    }

    public String getQuestionContent() {
        return questionContent;
    }

    public List<Option> getOptionList() {
        return optionList;
    }

    public void setOptionList(List<Option> optionList) {
        this.optionList = optionList;
    }

    public void setQuestionContent(String questionContent) {
        this.questionContent = questionContent;
    }

    public String getDifficultyLevel() {
        return difficultyLevel;
    }

    public void setDifficultyLevel(String difficultyLevel) {
        this.difficultyLevel = difficultyLevel;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getMarked() {
        return marked;
    }

    public void setMarked(Integer marked) {
        this.marked = marked;
    }

    public Integer getCorrect() {
        return correct;
    }

    public void setCorrect(Integer correct) {
        this.correct = correct;
    }

    public String getAnswerContent() {
        return answerContent;
    }

    public void setAnswerContent(String answerContent) {
        this.answerContent = answerContent;
    }
}
